<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../../static/bootstrap/css/bootstrap.min.css"
	rel="stylesheet">
<link rel="stylesheet" href="../../static/css/sb-admin-2.css">
<link href="../../static/prettify/github-v2.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
      <script src="../../static/js/html5shiv.min.js"></script>
      <script src="../../static/js/respond.min.js"></script>
    <![endif]-->
<style>
body {
	word-wrap: break-word;
}
</style>
</head>
<body onload="prettyPrint();">
	<div id="nav"></div>
	<div id="page-wrapper" style="padding: 10px">
		<div class="container-fluid">
			<div class="row">
				<div class="col-md-12">
					<ol class="breadcrumb">
						<li><a href="../tag.html">标签</a></li>
						<li><a href="index.html">数据标签</a></li>
						<li><a href="newsPage.html">动态列表标签</a></li>
					</ol>

					<h2>动态列表标签</h2>
					<h3>默认dataName</h3>
					<p>newsPage</p>
					<h3>可接受的标签属性</h3>
					<div class="table-responsive">
						<table class="table">
							<thead>
								<tr>
									<th>属性名</th>
									<th class="col-md-3">类型</th>
									<th>是否必须</th>
									<th>默认</th>
									<th class="col-md-6">说明</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>begin</td>
									<td>日期(关于可以接受的日期格式，请见<a
										href="../appendix.html#accpet-datetime" target="_blank">接受的日期格式</a>)
									</td>
									<td>否</td>
									<td></td>
									<td>动态撰写日期最小值<b>必须和end属性结合使用</b></td>
								</tr>
								<tr>
									<td>end</td>
									<td>日期(关于可以接受的日期格式，请见<a
										href="../appendix.html#accpet-datetime" target="_blank">接受的日期格式</a>)
									</td>
									<td>否</td>
									<td></td>
									<td>动态撰写日期最大值<b>必须和begin属性结合使用</b></td>
								</tr>
								<tr>
									<td>asc</td>
									<td>boolean</td>
									<td>否</td>
									<td>false</td>
									<td>正序(时间)</td>
								</tr>
								<tr>
									<td>currentPage</td>
									<td>int</td>
									<td>否</td>
									<td>1</td>
									<td>当前查询页码</td>
								</tr>
								<tr>
									<td>pageSize</td>
									<td>int</td>
									<td>否</td>
									<td>10</td>
									<td>每页展示数目<b>这个数目不会超过设置的最大每页数目</b></td>
								</tr>
							</tbody>
						</table>
					</div>
					<h3>结果返回</h3>
					<p>
						无论是否查询到结果，都将会返回一个不为null的PageResult&lt;News&gt;对象，该对象基础可访问属性请见<a
							href="../appendix.html#pageresult-pros" target="_blank">PageResult默认属性</a>，
					</p>
					<p id="news-pro">News可访问属性如下：</p>
					<div class="table-responsive">
						<table class="table">
							<thead>
								<tr>
									<th>属性名</th>
									<th class="col-md-3">类型</th>
									<th>是否可能为null</th>
									<th class="col-md-6">说明</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>content</td>
									<td>String</td>
									<td>否</td>
									<td>动态内容</td>
								</tr>
								<tr>
									<td>write</td>
									<td>Timestamp</td>
									<td>否</td>
									<td>动态发布日期</td>
								</tr>
								<tr>
									<td>update</td>
									<td>sql.Timestamp</td>
									<td>是</td>
									<td>动态最后修改日期</td>
								</tr>
								<tr>
									<td>isPrivate</td>
									<td>Boolean</td>
									<td>否</td>
									<td>是否是私人动态</td>
								</tr>
								<tr>
									<td>comments</td>
									<td>int</td>
									<td>否</td>
									<td>动态评论数</td>
								</tr>
								<tr>
									<td>allowComment</td>
									<td>Boolean</td>
									<td>否</td>
									<td>是否允许评论</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>

<script type="text/javascript" src="../../static/jquery/jquery.min.js"></script>
<script type="text/javascript"
	src="../../static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../../static/prettify/prettify.js"></script>
<script>
	$(function() {
		$("#nav").load("dataTagNav.html");
	});
</script>
</html>
